import request from '@/utils/request'


/**巡检审批*/
//我的待办
export function approvePoll(params) {
  return request({
    url: '/device/pollingPlan-approve/taskList',
    method: 'get',
    params,
  })
}
//我的已办
export function approveDonePoll(params) {
  return request({
    url: '/device/pollingPlan-approve/taskDoneList',
    method: 'get',
    params,
  })
}
//审批
export function approve(params) {
  return request({
    url: '/device/pollingPlan-approve/complete',
    method: 'post',
    data:params,
  })
}
//审批计划详细流程
export function approveList(id){
  return request({
    url: `/device/pollingPlan-approve/${id}`,
    method: 'get',
  })
}

export function approveImg(params){
  return request({
    url: `/process/read-resource`,
    method: 'get',
    params
  })
}
